function [ systoleVel ] = velValueReplacement ( ecgGatedVel, curveStartIdx, curveEndIdx, curveVals )
% Extrapolates systolic portion of velocity curve to zero and replaces
% values after end systole with zero

systoleVel = ecgGatedVel;

systoleVel(curveStartIdx:curveEndIdx, 2) = curveVals(:, 2);

[systoleVel] = repZeros( systoleVel, curveEndIdx + 1, length(systoleVel), 2 );
%systoleVel(curveEndIdx + 1:length(systoleVel), 2) = 0;

end

